<template>
  <!-- components: dropDownItem -->
  <li
    class = "dropdown-option"
    v-bind:class ="{'is-disabled': disabled}"
  >
    <!-- slot 插槽 -->
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

// 对setup函数进行封装，返回options的对象
export default defineComponent({
  // 页面名称
  name: 'DropDownItem',
  // 传递数据
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
})
</script>

<style lang = "css" scoped>
</style>
